/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package rukopisyimport.foxml;

import cz.mzk.kramerius.imports.Foxml;

/**
 *
 * @author Martin Rehanek (rehan@mzk.cz)
 */
public class Page extends Foxml {

    private final String id;
    private final String urlSuffix;
//    private Element imgFullAdmXmlContent;
//    private Element ocrBinaryContent;
//    private Element ocrAdmXmlContent;

    public Page(String uuid, String id, String label, String urlSuffix) {
        super(uuid, label);
        this.id = id;
        this.urlSuffix = urlSuffix;
//        imgFullAdmXmlContent = createImgFullAdmXmlContent();
//        ocrBinaryContent = createOcrBinaryContent();
//        ocrAdmXmlContent = createOcrAdmXmlContent();
    }

    public String getId() {
        return id;
    }

//    private Element createImgFullAdmXmlContent() {
//        Element dataStream = appendDatastream(rootElement, "A", "X", "IMG_FULL_ADM");
//        Element dataStreamVersion = createDatastreamVersionElement(dataStream, null, "text/xml", "Image administrative metadata", "IMG_FULL_ADM.0");
//        Element xmlContent = dataStreamVersion.addElement(new QName("xmlContent", Namespaces.foxml));
//        xmlContent.addElement(new QName("Description", Namespaces.adm));
//        return xmlContent;
//    }
//
//    private Element createOcrBinaryContent() {
//        Element dataStream = appendDatastream(rootElement, "A", "M", "TEXT_OCR");
//        Element dataStreamVersion = createDatastreamVersionElement(dataStream, null, "text/plain", "Result of OCR", "TEXT_OCR.0");
//        return dataStreamVersion.addElement(new QName("binaryContent", Namespaces.foxml));
//    }
//
//    private Element createOcrAdmXmlContent() {
//        Element dataStream = appendDatastream(rootElement, "A", "X", "TEXT_OCR_ADM");
//        Element dataStreamVersion = createDatastreamVersionElement(dataStream, null, "text/xml", "OCR administrative metadata", "TEXT_OCR_ADM.0");
//        Element xmlContent = dataStreamVersion.addElement(new QName("xmlContent", Namespaces.foxml));
//        xmlContent.addElement(new QName("Description", Namespaces.adm));
//        return xmlContent;
//    }
    @Override
    public String toString() {
        return "id:" + getId() + ", label:'" + getLabel() + "'";
    }

    String getUrlSuffix() {
        return urlSuffix;
    }
}
